package com.lsn.watermall.exception;

public class WaterException extends RuntimeException{
    private String retCode;
    private String retMsg;

    public String getRetCode() {
        return retCode;
    }

    public void setRetCode(String retCode) {
        this.retCode = retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

    public WaterException(String retCode, String retMsg) {
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public WaterException(BaseErrorInfo baseErrorInfo) {
        this.retCode = baseErrorInfo.getRetCode();
        this.retMsg = baseErrorInfo.getRetMsg();
    }

    public WaterException(String message, String retCode, String retMsg) {
        super(message);
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public WaterException(String message, Throwable cause, String retCode, String retMsg) {
        super(message, cause);
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public WaterException(Throwable cause, String retCode, String retMsg) {
        super(cause);
        this.retCode = retCode;
        this.retMsg = retMsg;
    }

    public WaterException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String retCode, String retMsg) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.retCode = retCode;
        this.retMsg = retMsg;
    }
}
